<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix'        => 'admin/IdealHome',
    'namespace'     => 'Beerus\\Modules\\IdealHome\\Controllers',
    'middleware'    => [
        'web',
        'admin',
    ],
], function (Router $router) {
    // 视频模块
    $router->get('/video', 'VideoController@index');
    // 「灵感捕手」模块
    $router->get('/InspirationUser/index', 'InspirationUserController@index');
    $router->get('/InspirationUser/index/create', 'InspirationUserController@create');
    $router->get('/InspirationUser/{id}/edit', 'InspirationUserController@edit');
    $router->get('/InspirationUser/index/{id}', 'InspirationUserController@view');
    $router->get('/InspirationUser/status/{id}/{status}', 'InspirationUserController@status');
    $router->post('/InspirationUser/save', 'InspirationUserController@save');
    $router->get('/InspirationUser/notePic/{noteId}', 'InspirationUserController@notePic');
    $router->get('/InspirationUser/notePic/{noteId}/{picId}', 'InspirationUserController@notePic');
});
